package com.tiger.cloud.model.sms;

import io.swagger.annotations.ApiModelProperty;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tiger.cloud.common.mybatis.TigerBaseEntity;
/**
 * 
 * sms_group-聊天组
 *
 */
public class SmsGroup extends TigerBaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 
	 */
	@ApiModelProperty(value = "群备注")
    private String remark;
	/**
	 * 
	 */
	@ApiModelProperty(value = "群头像")
    private String image;
	/**
	 * 
	 */
	@ApiModelProperty(value = "群名称")
    private String name;
	/**
	 * 
	 */
	@ApiModelProperty(value = "融云ID")
    private String groupId;
	/**
	 * 
	 */
	@ApiModelProperty(value = "")
    private Long userId;
	/**
	 * 
	 */
	@ApiModelProperty(value = "创建用户")
    private String userName;
	/**
	 * 
	 */
	@ApiModelProperty(value = "创建用户头像")
    private String headImage;
	/**
	 * 
	 */
	@ApiModelProperty(value = "创建时间")
	 @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")   
   	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
    private java.sql.Timestamp createTime;
	/**
	 * 
	 */
	@ApiModelProperty(value = "")
	 @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")   
   	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") 
    private java.sql.Timestamp updateTime;
	/**
	 * 
	 */
	@ApiModelProperty(value = "是否是当前用户创建的群")
    private boolean hasUserCreated=false;
	
    public SmsGroup(){
    
    }
    
    public String getHeadImage() {
		return headImage;
	}

	public void setHeadImage(String headImage) {
		this.headImage = headImage;
	}

	public boolean isHasUserCreated() {
		return hasUserCreated;
	}

	public void setHasUserCreated(boolean hasUserCreated) {
		this.hasUserCreated = hasUserCreated;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getName() {
        return this.name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    public String getGroupId() {
        return this.groupId;
    }
    
    public void setGroupId(String uid) {
        this.groupId = uid;
    }
    public Long getUserId() {
        return this.userId;
    }
    
    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public java.sql.Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(java.sql.Timestamp createTime) {
        this.createTime = createTime;
    }
    public java.sql.Timestamp getUpdateTime() {
        return this.updateTime;
    }
    
    public void setUpdateTime(java.sql.Timestamp updateTime) {
        this.updateTime = updateTime;
    }
    
	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}